xquery version "0.9-ml"

(:
$element is the element to check for
:)

let $arg_element := xdmp:get-request-field("element")

(:these variables are for testing :)

let $element := "doc('jasonmonberg.xml')/jasonmonberg/portino/feeds/savedItems/savedItem/item/[guid = 'tag:blogger.com,1999:blog-15674584.post-3736936950689022654']"


let $s := concat(
	"xdmp:exists(
	",
	$element
	,
	")"
	)

return
xdmp:eval($s)
